home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 019a / amac40.zip / RING@1.QM < prev    next >
Text File  |  1991-08-03  |  3KB  |  61 lines

  1. *                               RING@1.QM
  2. *                    [ See RINGxx.QM for discussion ]
  3. *                             August 3, 1991
  4. * ----------------------------------------------------------------------
  5. *   @(1)  Load At Command Line All Files From a Pre-Made List of Files,
  6. *        (Does *NOT* Emulate PC Magazine's FILECTRL.COM After Loading)
  7. *        (Written by Kyle Watkins of SemWare)
  8. *       > Must be first macro in file to autoexecute at start up <
  9. * ----------------------------------------------------------------------
  10.  
  11. *   In comparing this latest macro (as written by Kyle Watkins) to one
  12. *   Tim Farley wrote earlier, the following message was sent to me on the
  13. *   SemWare BBS by Tim, dated 7/31/90:
  14.  
  15. ************************************************************************
  16. * COMMENTS FROM TIM FARLEY - SemWare:
  17. *
  18. *   Here's Kyle's version (much improved over mine, I must admit)
  19. *   of the file list loading macro.  Comments added by me.
  20. * *
  21. * * LOAD A LIST OF FILES
  22. *
  23. @1   MacroBegin
  24.      EndFile BegLine              * start at last line
  25.    REPEAT:
  26.      UnmarkBlock                  *(unmarkblock not necessary, TH, 6-26-91)
  27.      MarkLine Copy                * grab this name
  28.      EditFile                     * get ready to load
  29.      CurrentFilename " "          * to force return *here*
  30.      Paste Return                 * paste file name & do it!
  31.      CursorUp                     * more lines above?
  32.      JTrue REPEAT:                * if yes, repeat.
  33. *
  34. * 19 bytes Mon  06-24-1991  23:24:24 (TH added this line)
  35. *
  36. *   Not only is this macro far smaller than mine (by almost a factor of
  37. *   2!), but it has the following advantages:
  38. *
  39. *        * faster!
  40. *        * doesn't "change" the file list file
  41. *        * still loads files in same order they are in the list
  42. *        * returns to list file with no screen "flashing"
  43. *        * takes advantage of QEdit's deferred loading of files
  44. *
  45. *   That last bit is the main advantage:  by specifying CurrentFilename
  46. *   plus a space plus the desired file name on the EditFile prompt, we
  47. *   load both the current file, plus the file we desire.  This takes
  48. *   advantage of the fact that the EditFile, just like the QEdit command
  49. *   line, can accept multiple file names together, separated by spaces.
  50. *
  51. *   But loading the current file just returns us to the buffer we are in
  52. *   with no disk access.  So the end result is that the file from the
  53. *   list is entered in QEdit's "ring" *without* actually loading it.  It
  54. *   only loads when you try to Nextfiles into it, just as if you had
  55. *   loaded the list via a wild card.  Neat!
  56. *
  57. *   Kyle really came up with a far better solution here.
  58. *
  59. *   --Tim Farley
  60.  
  61.